package com.jbm.onehome.remote;

import com.jbm.core.iface.IAcross;
import com.jbm.core.server.SAccount;
import com.jbm.onehome.iface.IAcc;
import com.jbm.onehome.iface.IAccCtrl;

/**
 * Created by root on 17-3-7.
 */
public class RIAccCtrl extends IAccCtrl
{
	public RIAccCtrl()
	{
	}

	public RIAccCtrl(IAcross ia)
	{
		super(ia);
	}

	public IAcross GetAccList()
	{
		IAcc acc = ((IAccCtrl)m_input).m_acc[0];

		Integer[] cs = new SAccount(acc.m_account_id).GetAllContact(null);

		IAcc[] acces = new IAcc[cs.length];

		for ( int i = 0; i < cs.length; i ++ )
			acces[i] = new IAcc(cs[i]);

		return new IAccCtrl(acces);
	}
}
